<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Grom Hellscream
 * Date: 11/1/12
 * Time: 6:33 PM
 * To change this template use File | Settings | File Templates.
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

// import Joomla modelitem library
jimport('joomla.application.component.modelitem');

/**
 * Cocautochuc Model
 */
class VastModelCocautochuc extends JModelItem
{
    /**
     * @var string khois
     */
    protected $khois;

    /**
     * Get the message
     * @return string The message to be displayed to the user
     */
    public function getKhois()
    {
        if (!isset($this->khois))
        {
            $db = JFactory::getDBO();
            $query = $db->getQuery(true);

            $query->select('a.*');
            $query->from('#__khoi AS a');

            $db->setQuery($query);
            $this->khois = $db->loadObjectList();
        }
        return $this->khois;
    }
}